<?php
	header('content-type: application/json');
		
	$arr = array();
	
	if($mapd)
	{
		foreach($mapd as $row)
		{
			$arr[] = $row;
		}
	}

	if($sdt)
	{
		foreach($sdt as $row)
		{
			$arr[] = $row;
		}
	}	
	
	echo json_encode($arr);
?>